﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;

namespace DataModels.Models
{
    public class ExcelTemplateCellExtra : ModelBase, ICloneable
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int ExtrasID { get; set; }

        [Required]
        [StringLength(1000)]
        public string Extras { get; set; }

        [ForeignKey("ExcelTemplateCell")]
        public int CellID { get; set; }
        public virtual ExcelTemplateCell ExcelTemplateCell { get; set; }

        public object Clone()
        {
            var clone = new ExcelTemplateCellExtra();
            clone.Extras = this.Extras;
            return clone;
        }
    }
}
